From fe5c27cf951af15f80a3ba4ea06882da0a68cd1e Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Fri, 18 Nov 2005 19:46:34 +0000 Subject: [PATCH] oops; backwards test git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1587 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/smplrout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/smplrout.c b/gpsbabel/smplrout.c index cd1318ac9..40d2f897d 100644 --- a/gpsbabel/smplrout.c +++ b/gpsbabel/smplrout.c @@ -220,7 +220,7 @@ routesimple_tail( const route_head *rte ) xte_recs[i].intermed->xte_rec = xte_recs+i; } /* while we still have too many records... */ - while ( (countopt && count < xte_count) || (erroropt && error < totalerror) ) { + while ( (countopt && count < xte_count) || (erroropt && totalerror < error) ) { i = xte_count - 1; /* remove the record with the lowest XTE */ if ( erroropt ) { -- 2.30.2